﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.OleDb;
using System.Configuration;

using DM_Article.Bll;
using DM_Article.Model;

public partial class group : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string name = Request["name"];
        Page.Title += name;
        this.position.Text = name + " >";
        this.blockTitle.Text = name;
        using (OleDbConnection cn = new OleDbConnection(ConfigurationManager.ConnectionStrings["ConnectionStringAccess"].ConnectionString))
        {
            cn.Open();
            //if (name == "焦点新闻")
            //{
            //    //for  焦点新闻
            //    this.repeater.DataSource = articlebll.getArticleSmallclassNameJDXW(cn, -1);
            //}
            //else
            //{
            //    this.repeater.DataSource = articlebll.getArticleByBigclassidDatasetTop(cn, bigclassbll.getBigClassIdbyName(cn, name), -1);
            //}
            this.repeater.DataSource = articlebll.getArticleByBigclassidDatasetTop(cn, bigclassbll.getBigClassIdbyName(cn, name), -1);

            this.repeater.DataBind();
        }

    }
}